package v1

import (
	"lib/mall/v1/controller/user"
	"lib/mall/v1/lib"
)

func InitUserRouter(r *lib.RouterGroup) {
	// 权限认证
	auth := r.Group("/auth")
	authController := user.NewAuthController()
	auth.GET("/token", authController.Token)
	auth.POST("/login", authController.Login)
	auth.POST("/logout", authController.Logout)
}
